Skip to content

feat(ci): attest build provenance#161

Merged
hyperpolymath merged 1 commit into
mainfrom
feat/attest-build-provenance
Jun 25, 2026
Merged

feat(ci): attest build provenance#161
hyperpolymath merged 1 commit into
mainfrom
feat/attest-build-provenance

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Estate attestation rollout

Adds GitHub native build-provenance attestation to .github/workflows/ghcr-publish.yml.

Push mechanism: Podman (podman build + podman push to ghcr.io), image ghcr.io/hyperpolymath/verisimdb-api.

How the digest is obtained: the SHA-tagged GHCR push now runs with podman push --digestfile=/tmp/ghcr-digest, which writes the real sha256:... digest of the pushed manifest. That value is exported as the push step output and fed to the attestation as subject-digest.

Changes:

  • Added a job permissions block with id-token: write + attestations: write (plus the existing contents: read, packages: write).
  • Captured the pushed digest via --digestfile.
  • Added an actions/attest-build-provenance@e8998f94… (v2, pinned) step with push-to-registry: true, gated on the same non-PR condition as the push.

Verify with:

gh attest verify oci://ghcr.io/hyperpolymath/verisimdb-api:<tag> --repo hyperpolymath/verisimdb

🤖 Generated with Claude Code

Add GitHub native build-provenance attestation to the GHCR publish
workflow. The verisimdb-api image is built and pushed with Podman; the
pushed manifest digest is captured via 'podman push --digestfile' and
bound to the attestation via actions/attest-build-provenance.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@hyperpolymath
hyperpolymath merged commit 3dcbdb8 into main Jun 25, 2026
27 of 36 checks passed
@hyperpolymath
hyperpolymath deleted the feat/attest-build-provenance branch June 25, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant